function acc(num1?:number,num2?:number){
  if(num1){
    console.log(num2);
  }
  else
  console.log('hhhh');
  
}
acc(12)
acc(11,22)
acc()